#!/bin/sh
nasm -f elf -o multiboot_loader.o multiboot_loader.asm
gcc -o kernel.o -c main.c -Wall -Wextra -Werror -nostdlib -nostartfiles -nodefaultlibs
ld -T linker.ld -o kernel.bin multiboot_loader.o kernel.o
cat  stage1 stage2 pad kernel.bin > floppy.img
bochs
